import { post } from '../api-caller';

const sendVcode = async (phone: string) => {
  await post({ path: '/api/auth/register/vcode', body: { phone } });
};

const register = (options: { phone: string; password: string; vcode: string }) =>
  post({ path: '/api/auth/register', body: options });

const registerApis = {
  sendVcode,
  register,
};

export default registerApis;
